package org.jet.emall.prod.service;

import org.jet.emall.common.restful.result.CommonPage;
import org.jet.emall.prod.dto.OrderDTO;

/**
 * @author xiaozai
 * @version 1.0
 * @date 2020-05-02 12:00
 */
public interface CustomOrderService {

    /**
     *  分页查找订单
     * @param code
     * @param shippingUser
     * @param shippingPhone
     * @param shippingAddress
     * @param pageNum
     * @param pageSize
     * @return
     */
    CommonPage<OrderDTO> page(String code, String shippingUser, String shippingPhone, String shippingAddress,Byte status, Long minMoney,Long maxMoney, Integer pageNum, Integer pageSize);


    /**
     *  获取订单
     * @param id
     * @return
     */
    OrderDTO getOrderById(Long id);

    /**
     *  删除订单
     * @param id
     */
    void delete(Long id);

    /**
     * 更新订单状态
     * @param code
     * @param status
     */
    void update(String code, Byte status);
}
